SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 18554: Active Directory Bulk-Load sample program, IMPORTAD.SAS inconsistently refers to keyidvar

DetailsAboutRate It

The bulk–load sample program for Active Directory, importAD.sas, defines the keyidvar macro variable to identify an attribute of the Active Directory Server Information to use as a unique identifier for Persons. ImportAD.sas is inconsistent in its use of keyidvar, resulting in persons not being added as members to groups (i.e. the grpmems table has 0 observations).

The default value of keyidvar is distinguishedName. Other common values are employeeID and sAMAccountName, though any attribute which uniquely identifies a Person should be valid.

To correct the keyidvar reference problem, modify the code as demonstrated here.

The current code block reads:

    /*********************************************************************************/
    /* If we were using the employeeid as the keyid for persons, then we need to     */
    /* re-code the person group memberkeys from DN to employeeIDs so that they match.*/
    /*********************************************************************************/
    %macro transmemkeyid;
      %if %upcase(&keyidvar)=EMPLOYEEID %then %do;
          proc sql;

Change the current line:

%if %upcase(&keyidvar)=EMPLOYEEID %then %do;

to:

%if %upcase(&keyidvar)^=DISTINGUISHEDNAME %then %do;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Integration TechnologiesMicrosoft Windows XP Professional9.1 TS1M3 SP39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP39.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP39.3 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP39.3 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP3
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP39.3 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M3 SP3
Microsoft Windows 2000 Server9.1 TS1M3 SP3
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP3
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP3
64-bit Enabled Solaris9.1 TS1M3 SP39.3 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP39.3 TS1M0
z/OS9.1 TS1M3 SP39.3 TS1M0
HP-UX IPF9.1 TS1M3 SP39.3 TS1M0
Linux9.1 TS1M3 SP39.3 TS1M0
Linux on Itanium9.1 TS1M3 SP39.3 TS1M0
OpenVMS Alpha9.1 TS1M3 SP39.3 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP39.3 TS1M0
Tru64 UNIX9.1 TS1M3 SP39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.